home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libruby1.8.postinst < prev    next >
Text File  |  2008-09-19  |  2KB  |  56 lines

  1. #! /bin/sh
  2. # postinst script for ruby
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postinst> `configure' <most-recently-configured-version>
  10. #        * <old-postinst> `abort-upgrade' <new version>
  11. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  12. #          <new-version>
  13. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  14. #          <failed-install-package> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see /usr/share/doc/packaging-manual/
  17. #
  18. # quoting from the policy:
  19. #     Any necessary prompting should almost always be confined to the
  20. #     post-installation script, and should be protected with a conditional
  21. #     so that unnecessary prompting doesn't happen if a package's
  22. #     installation fails and the `postinst' is called with `abort-upgrade',
  23. #     `abort-remove' or `abort-deconfigure'.
  24.  
  25. case "$1" in
  26.     configure)
  27.     if [ -w /usr/local/lib -a ! -e /usr/local/lib/site_ruby/1.8 ]
  28.     then
  29.         mkdir -p /usr/local/lib/site_ruby/1.8/i486-linux 2>/dev/null || true
  30.         chown root:staff /usr/local/lib/site_ruby/1.8/i486-linux 2>/dev/null || true
  31.         chmod 2775 /usr/local/lib/site_ruby/1.8/i486-linux 2>/dev/null || true
  32.     fi
  33.     ;;
  34.  
  35.     abort-upgrade|abort-remove|abort-deconfigure)
  36.  
  37.     ;;
  38.  
  39.     *)
  40.         echo "postinst called with unknown argument \`$1'" >&2
  41.         exit 0
  42.     ;;
  43. esac
  44.  
  45. # dh_installdeb will replace this with shell code automatically
  46. # generated by other debhelper scripts.
  47.  
  48. # Automatically added by dh_makeshlibs
  49. if [ "$1" = "configure" ]; then
  50.     ldconfig
  51. fi
  52. # End automatically added section
  53.  
  54.  
  55. exit 0
  56.